﻿@model ProfileInfoModel
@using Nop.Web.Models.Profile;
<div class="profile-info-box">
    <div class="user-details">
        @if (Model.AvatarEnabled && !String.IsNullOrEmpty(Model.AvatarUrl))
        {
            <div class="avatar">
                <img src="@(Model.AvatarUrl)" class="avatar-img" alt="Avatar" />
            </div>         
        }
        @if (Model.LocationEnabled)
        {            
            <div class="profile-stat">
                @T("Profile.Country"): <span class="profile-stat-value">@Model.Location</span>
            </div>  
        }
        @if (Model.PMEnabled)
        {
            <div class="profile-stat">
                <div class="sendpmbox">
                    @Html.RouteLink(T("Forum.PrivateMessages.PM").Text, "SendPM", new { toCustomerId = @Model.CustomerProfileId }, new { @class = "pmlinkbutton" })
                </div>
            </div>  
        }
        @Html.Action("WidgetsByZone", "Widget", new { widgetZone = "profile_page_info_userdetails" })
    </div>
    <div class="user-stats">
        <div class="section-title">
            @T("Profile.Statistics")
        </div>
        @if (Model.TotalPostsEnabled)
        {
            <div class="profile-stat">
                @T("Profile.TotalPosts"): <span class="profile-stat-value">@Model.TotalPosts</span>
            </div>         
        }
        @if (Model.JoinDateEnabled)
        {        
            <div class="profile-stat">
                @T("Profile.JoinDate"): <span class="profile-stat-value">@Model.JoinDate</span>
            </div>
        }
        @if (Model.DateOfBirthEnabled)
        {
            <div class="profile-stat">
                @T("Profile.DateOfBirth"): <span class="profile-stat-value">@Model.DateOfBirth</span>
            </div>
        }
        @Html.Action("WidgetsByZone", "Widget", new { widgetZone = "profile_page_info_userstats" })
    </div>
    <div class="clear">
    </div>
</div>
